 {extend name="layout:base" /}{block name="content"}

 <?php
$global=isSupperManagerForSession();
 ?>
 <link rel="stylesheet" type="text/css" href="/static/My97DatePicker/skin/WdatePicker.css" />
     <script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
  .yg_inp>input{margin-bottom: 10px;}
#zc_detail table{margin:10px;}
#zc_detail table tr td{
	border: 1px solid #ddd;
	height:40px;
	line-height:40px;
	padding-left:5px;
	padding-right:5px;
} 
.ordertable input {width:90%;}
.policeLable{padding:2px 4px;margin-left:4px;}
#taskDate .taskDateItem{
	width:100%;height:40px;line-height:40px;margin:4px 0px;
}
#taskDate .taskDateItem .taskDateItemLeft{width:10%;float:left;}
#taskDate .taskDateItem .taskDateItemRight1{width:70%;float:left;border:1px solid #139667;height: 42px;}
#taskDate .taskDateItem .taskDateItemRight2{width:20%;float:right;}
#taskDate .taskDateItem .opUsers img{width:22px;margin-left:5px;}

#taskDate .taskDateItem .itemUser{padding: 4px 6px;background:#139667;margin-left:4px;color:white;}
#taskDate .taskDateItem .clear{clear:both;width:0px;height:0px;overflow:hidden;}
#taskDate .taskDateItem .jia,#taskDate .taskDateItem .jian{font-size:30px;cursor:pointer;font-weight:800;margin-left:5px;}

.table tr th{text-align:center;}
</style>

<section class="topBanners">
         <div class="icon"></div>
         <div class="topBannersNav">
        <span data-url="/admin/fangke/lists" onclick="ContentLoadGo('/admin/fangke/lists')">访客管理</span>
         >
         <span data-url="/admin/fangke/infoData"  onclick="ContentLoadGo('/admin/fangke/infoData?id=<?php echo $id; ?>')"  >访客详情</span>
         
         </div>
      </section>
 <section id="zc_detail">

      <input type="hidden" value="<?php echo $id; ?>" id="editId" />
    
   <table class="ordertable" border="0" cellspacing="0" cellpadding="0">

	
     <tr>
       
       <td width="120"><div align="right">姓名</div></td>
       <td width="180"  class="tr_cons">
     <?php echo $info['uname']; ?>
       </td>
     
       <td width="120"><div align="right">性别</div></td>
       <td width="180"  class="tr_cons">
      		<?php echo changeSexToName($info['sex']); ?>
       </td>
       
       <td width="120"><div align="right">出生年月</div></td>
       <td width="180"  class="tr_cons">
          <?php echo $info['bday']; ?>
       </td>
       <td width="120"><div align="right">身份证号码</div></td>
       <td width="180"  class="tr_cons">
     	<?php echo $info['pcode']; ?>
       
       </td>
       </tr>
       
       
       <tr>
       
       
       
       
       <td width="120"><div align="right">国籍</div></td>
       <td width="180"  class="tr_cons">
           
       <?php echo $info['country']; ?>
       
       </td>
       <td width="120"><div align="right">民族</div></td>
       <td width="180"  class="tr_cons">
           
			<?php echo $info['nation']; ?>
       
       </td>
       
       <td width="120"><div align="right">类型</div></td>
       <td width="180"  class="tr_cons" colspan="3">
          <?php echo changeTypeToName($info['type']); ?>
       </td>
       
       
       
     </tr>
     
     
      <tr>
       <td width="120"><div align="right">证件地址</div></td>
       <td width="180"  class="tr_cons" colspan="5">
       <?php echo $info['address']; ?>
       </td>
       
     
       
       
     </tr>
     
     <tr>
         <td width="120"><div align="right">证件照片</div></td>
         <td colspan="7">
			   <?php

    if($info['mpic'])
	{
	?>
	<a href="<?php echo $info['mpic']; ?>" target="_black"><img src="<?php echo $info['mpic']; ?>" style="width:120px;margin:5px;" /></a>
	<?php
	}else
	{
?>
  暂无照片
<?php
	}
    ?>
         </td>
      </tr>
     
      <tr>
         <td width="120"><div align="right">简介</div></td>
         <td colspan="7">
			<?php echo $info['minfo']; ?>
         </td>
      </tr>
      
      <tr>
         <td width="120"><div align="right">详细档案</div></td>
         <td colspan="7">
 			<?php echo  $info['mtxt']; ?>
         </td>
      </tr>
       
     <tr>
       <td colspan="8" style="height:50px;text-align:center;">
       
    

       </td>
     </tr>
     
     
   </table>
  
  
     
<table class="table" style="margin-top:10px;width:90%;">

<tr>
<th style="width:100px;">到访时间</th>
<th style="width:60px;">接访人</th>

<th style="width:300px;">情况记录</th>

<th style="width:100px">照片</th>
<th style="width:60px;">状态</th>

</tr>

<?php 
if(empty($lists['data']))
{
?>
<tr>
<td colspan="5" style="text-align:center;">
		暂无到访记录
</td>
</tr>
<?php
}else
{
	foreach($lists['data'] as $key=>$val)
	{
?>
<tr data-id="<?php echo $val['id']; ?>">

<td>
<?php
echo $val['fdate'];
?>
 </td>
 <td>
<?php
echo $val['fmuserInfo']['nickname'];
?>
 </td>

<td style="text-align:center;">



<div class="mypointer" data-toggle="tooltip"
        data-placement="bottom" title="<?php echo $val['finfo'];?>"><?php echo $val['finfo'];?></div>

</td>

<td>
    <?php

    if($val['pic'])
	{
	?>
	<a href="<?php echo $val['pic']; ?>" target="_black"><img src="<?php echo $val['pic']; ?>" style="width:60px;" /></a>
	<?php
	}else
	{
?>
  暂无照片
<?php
	}
    ?>
</td>


 <td style="text-align:center;">
<?php
   $tmpString="";
   if($val['fcheck']=='0')
	{
		$tmpString .="<font style='color:red;'>未通过验证</font>";
	}else if($val['fcheck']=='1')
	{
		$tmpString .="<font style='color:green;'>人证合一验证</font>";
	}
	else if($val['fcheck']=='2')
	{
		$tmpString .="<font style='color:green;'>人工验证</font>";
	}
echo $tmpString;
?>
</td>
 
</tr>
      <?php
      }
}
	  ?>
</table>
<div style="width:90%;">
{include file="../application/admin/view/layout/page_tpl_new.html" /}
</div>
  
     </section>
     
     
       <script type="text/javascript">
      
      function myResearch(){
		   var url="/admin/fangke/infoData";
		   var id=$("#editId").val();
		   var page=$("#cpage").val();
		   ContentLoadGo(url+"?id="+id+"&page="+page);
		   
	   }
    
      
           $(function(){
        	
        	   
        	   $(".research").unbind().bind("click",function(){
        		   var page =$(this).attr("page");
        		   $("#cpage").val(page);
        		   myResearch();
        		   
        	   });
        	   
        	   $(".info").click(function(){
        		   var that =this;
        		   var url="/admin/devlist/infoData";
        		   var id=$(that).parent().parent().attr('data-id');
        		   var param={
        				   id:id
        		   };
        		  // MyContentLoad(url,param);
        			ContentGet(url,param)	 
        				
        			 //弹出：确认按钮
        			
        	   });
        	   
        	  
  			  
         	   $(".topBannerItem").click(function(){
         		   
         		   var attArr = $(this).attr();
             	   goToSelfLink(attArr);
             	   
         			
         	   });
  			   
           });
           
	  </script>
	  	  
	  {/block}
	  